package model

import (
	"time"
)

type Rooms struct {
	Id        uint      `gorm:"column:id;type:bigint(20) UNSIGNED;primaryKey;not null;" json:"id"`
	UserId    uint      `gorm:"column:user_id;type:bigint(20);not null;" json:"user_id"`
	RoomId    uint      `gorm:"column:room_id;type:bigint(20);not null;" json:"room_id"`
	CreatedAt time.Time `gorm:"column:created_at;type:datetime(3);not null;default:CURRENT_TIMESTAMP(3);" json:"created_at"`
	UpdatedAt time.Time `gorm:"column:updated_at;type:datetime(3);not null;default:CURRENT_TIMESTAMP(3);" json:"updated_at"`
	DeletedAt time.Time `gorm:"column:deleted_at;type:datetime(3);default:NULL;" json:"deleted_at"`
	Status    string    `gorm:"column:status;type:varchar(255);not null;" json:"status"`
}
